##Makefile sample for a netgpu-based program

#binary target name
TARGET := example

#NVCC compiler
NVCC := nvcc 

#Analysis folder
ANALYSIS_FOLDER:=Analysis

#Find all .o objects (analysis) in $(ANALYSIS_FOLDER)
#OBJS:=$(shell find ./* -name *.o)

#Libs
LIBS :=  -lnetgpu -lpcap -lpthread -lodbc 

#Compilation flags
FLAGS = -pg

.NOTPARALLEL:
all:analysis
	$(NVCC) Main.cpp $(shell find ./* -name *.o) $(LIBS) -o $(TARGET) 
analysis:
	cd Analysis && make

clean:
	cd Analysis && make clean
	rm -f $(TARGET)
